import { BasicColumn, FormSchema } from '@/components/Table'

export const columns: BasicColumn[] = [
  {
    title: '告警类型',
    dataIndex: 'name',
  },
  {
    title: '更新时间',
    dataIndex: 'updateTime',
  },
  {
    title: '备注',
    dataIndex: 'description',
  },
]

export const searchFormSchema: FormSchema[] = [
  {
    field: 'name',
    label: '告警类型',
    component: 'Input',
    colProps: { span: 6 },
  },
]

export const addFormSchema: FormSchema[] = [
  {
    field: 'name',
    label: '设备参数',
    component: 'Input',
    required: true,
  },
  {
    field: 'description',
    label: '备注',
    component: 'InputTextArea',
  },
]
